package com.gitee.qdbp.general.common.biz.settings.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.common.api.settings.basic.ISensitiveWordBasic;
import com.gitee.qdbp.general.common.api.settings.model.SensitiveWordBean;
import com.gitee.qdbp.general.common.api.settings.model.SensitiveWordWhere;
import com.gitee.qdbp.general.common.api.settings.service.ISensitiveWordQueryer;

/**
 * 敏感词信息业务处理类
 *
 * @author zhh
 * @version 170802
 */
@Service
@Transactional(readOnly = true)
public class SensitiveWordQueryer implements ISensitiveWordQueryer {

    /** 敏感词信息DAO **/
    @Autowired
    private ISensitiveWordBasic sensitiveWordBasic;

    @Override
    public SensitiveWordBean find(String id) throws ServiceException {
        return sensitiveWordBasic.findById(id);
    }

    @Override
    public SensitiveWordBean find(SensitiveWordWhere where) throws ServiceException {
        return sensitiveWordBasic.find(where);
    }

    @Override
    public PageList<SensitiveWordBean> list(SensitiveWordWhere where, OrderPaging paging) throws ServiceException {
        return sensitiveWordBasic.list(where, paging);
    }

}